package com.lzp.wechat.entity.message;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@NoArgsConstructor
@XStreamAlias("xml")
@ApiModel(value = "图片消息")
public class ImageMessage extends BaseMessage {

    @XStreamAlias("MediaId")
    @ApiModelProperty(value = "媒体id", notes = "通过素材管理中的接口上传多媒体文件，得到的id")
    private String mediaId;

    public ImageMessage(Map<String, String> requestMap, String mediaId) {
        super(requestMap);
        this.setMsgType("image");
        this.mediaId = mediaId;
    }
}
